import request from '@/utils/request'

// api地址
const api = {
  categoryTree: '/gms/yoshopCategory/treeList',
  categoryList:'/gms/yoshopCategory/list'
}

// 获取分类列表
export const categoryTree = () => {
  return request.get(api.categoryTree)
}
// 获取分类子级
export const List = (param) => {
  return request.get(api.categoryList,param)
}
